php pdo get database name

42

php pdo get database name -

$pdo->query('select database()')->fetchColumn();

Comments

Submit
0 Comments